/**
 * Copyright 2009 University of  Washington
 * This code is released under the GPL version 3 - with a copy of the license included
 * @author Maya Hao Li
 *
 */
package seedpod.webapp.controller;


import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import seedpod.util.Util;
import seedpod.webapp.LimsContext;
import seedpod.webapp.LimsSession;

public class Logout extends HttpServlet {


	private static final long serialVersionUID = 5096431406048197221L;

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		LimsSession _session = LimsSession.getSession( request );
		_session.invalidate();
		Util.dispatch( LimsContext.getHomeUrl(), request, response);
	}
}
